package cn.john.hrm.feign;

import cn.john.hrm.doc.CourseDoc;
import cn.john.hrm.query.CourseDocQuery;
import cn.john.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "SEARCH-SERVER",fallbackFactory = AddCourseDocFallBackFactory.class)
public interface AddCourseDocClient {
    @PostMapping("/search/addCourseDoc")
    AjaxResult add(@RequestBody CourseDoc courseDoc);
    @PostMapping("/search/queryCourses")
    AjaxResult queryCourses(@RequestBody CourseDocQuery query);
}
